package ebcs.database.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ebcs.database.bean.BsComment;
import ebcs.database.mybatis.dao.BsCommentMapper;
import ebcs.database.service.BsCommentServiceImp;

@Service
public class BsCommentServiceImpl implements BsCommentServiceImp{

	@Autowired
	BsCommentMapper bsCommentMapper;
	
	@Override
	public List<BsComment> findWaitCommentNeed(BsComment bsComment) {
		return bsCommentMapper.findWaitCommentNeed(bsComment);
	}

	@Override
	public int insertBatch(List<BsComment> list) {
		return bsCommentMapper.insertBatch(list);
	}

	@Override
	public List<BsComment> findWaitCommentByDateStr(String dateStr) {
		return bsCommentMapper.findWaitCommentByDateStr(dateStr);
	}

	@Override
	public int updateBatchByRouid(List<BsComment> list) {
		return bsCommentMapper.updateBatchByRouid(list);
	}
}
